package com.wootion.cims.module.systemsetting.log.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author YaoYiChao
 */
@Data
@TableName(value = "sys_log")
@ApiModel(value = "日志记录")
@Accessors(chain = true)
public class SysLog implements Serializable {

    private static final long serialVersionUID = 821941936512283734L;
    
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "操作人")
    private String operator;

    @ApiModelProperty(value = "ip")
    private String ip;

    @ApiModelProperty(value = "操作")
    private String type;

    @ApiModelProperty(value = "事件类别")
    private String incident;

    @ApiModelProperty(value = "操作时间")
    private Date createTime;

    @ApiModelProperty(value = "操作名称")
    private String value;

    @ApiModelProperty(value = "事件结果")
    private String result;
    
    @ApiModelProperty(value = "事件内容")
    private String content;

    @ApiModelProperty(value = "简介")
    private String details;

    @ApiModelProperty(value = "操作前数据")
    private String oldData;

    @ApiModelProperty(value = "操作后数据")
    private String newData;
}

